package com.creed.energy.project.system.common.model;

import lombok.Getter;

/**
 * @author btmood
 * @version 1.0
 * @apiNote 返回值通用状态码，业务状态码定义在各业务包中
 * @since 2023-11-19 21:58
 */
@Getter
public enum ResultCode {
    SUCCESS("200", "成功"),
    PARAM_ERROR("401", "参数不正确"),
    FAIL("402","处理异常"),
    OTHER_ERROR("499", "其他错误");

    private String code;
    private String desc;

    ResultCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
